import request from '@/utils/request'

// 学生查看心灵树洞、我的留言板
export function stulist(data) {
  return request({
    url: '/psy/noteboard/stulist',
    method: 'get',
    params: data
  })
}
//新增心理留言板
export function noteboard(data) {
  return request({
    url: '/psy/noteboard',
    method: 'post',
    data: data
  })
}
//教师查看关注、普通留言板
export function noteboardList(data) {
  return request({
    url: '/psy/noteboard/list',
    method: 'get',
    params: data
  })
}
// 删除心理留言板
export function delNoteboard(data) {
  return request({
    url: '/psy/noteboard/' + data,
    method: 'delete',
  })
}
// 删除心理留言板
export function delReply(data) {
  return request({
    url: '/psy/reply/' + data,
    method: 'delete',
  })
}
// 添加留言回复
export function replies(id,data) {
  return request({
    url: '/psy/reply/' + id + '/replies',
    method: 'post',
    data: data
  })
}
// 添加留言回复
export function parentReplies(id,data) {
  return request({
    url: '/psy/reply/' + id + '/parent/replies',
    method: 'post',
    data: data
  })
}
// 获取回复列表

export function getReplies(id) {
  return request({
    url: '/psy/reply/' + id + '/replies',
    method: 'get',

  })
}